package com.myblog.config.properties;

import com.myblog.emun.LoginResponseType;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "blog.security.authentication")
@Data
public class SecurityProperties {

    private String loginPage = "/login/page";
    private String loginProcessingUrl = "/login/form";
    private String usernameParameter = "name";
    private String passwordParameter = "pwd";
    private String[] staticPaths = {"/dist/**","/modules/**","/plugins/**","/fonts/**","/admin/**","/css/**",
            "/images/**","/js/**","/lib/**","/pages/**"};
    private LoginResponseType loginResponseType = LoginResponseType.REDIRECT;

}
